package com.goldgov.learnmanage.service;

import com.goldgov.utils.PropertyUtil;

/**
 * 用户bean
 * @ClassName: User
 */

public class User {
	
	private String userID;//用户id
	private String userName;//用户名
	private String loginID;//登录名
	private String email;//邮箱
	private String mobilePhone;//手机号
	private String idCardNum;//身份证号
	private Integer member;//是否为流动党员    1.是  2.否
	private String orgID;//机构id
	private String orgName;//机构名称
	private String headPhoto;//头像
	private double currentCourseTime;//课程学习时长
	private Integer courseNum;//课程数
	private Integer ranking;//排名
	private Integer commLogNum;//日志数
	private Integer gender;//1男，2女
	private String professionalLevel;		// 职级
	private Integer userNum;//用户数
	
	private String totalTime;//课程学习总时长
	private String averageTime;//平均学习时长
	private Integer partyMember;//党员人数 普通党员人数
	private Integer flowMember;//流动党员人数
	private String treePath;
	private Integer headCount;//总人数
	
	private User dyNum;
	
	
	public String getOrgID() {
		return orgID;
	}
	public void setOrgID(String orgID) {
		this.orgID = orgID;
	}
	public String getOrgName() {
		return orgName;
	}
	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}
	public String getUserID() {
		return userID;
	}
	public void setUserID(String userID) {
		this.userID = userID;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getLoginID() {
		return loginID;
	}
	public void setLoginID(String loginID) {
		this.loginID = loginID;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getMobilePhone() {
		return mobilePhone;
	}
	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}
	public String getIdCardNum() {
		return idCardNum;
	}
	public void setIdCardNum(String idCardNum) {
		this.idCardNum = idCardNum;
	}
	public Integer getMember() {
		return member;
	}
	public void setMember(Integer member) {
		this.member = member;
	}
	public double getCurrentCourseTime() {
		return currentCourseTime;
	}
	public void setCurrentCourseTime(double currentCourseTime) {
		this.currentCourseTime = currentCourseTime;
	}
	public Integer getCourseNum() {
		return courseNum;
	}
	public void setCourseNum(Integer courseNum) {
		this.courseNum = courseNum;
	}
	public Integer getRanking() {
		return ranking;
	}
	public void setRanking(Integer ranking) {
		this.ranking = ranking;
	}
	public Integer getCommLogNum() {
		return commLogNum;
	}
	public void setCommLogNum(Integer commLogNum) {
		this.commLogNum = commLogNum;
	}
	public String getHeadPhoto() {
		return headPhoto;
	}
	public void setHeadPhoto(String headPhoto) {
		this.headPhoto = headPhoto;
	}
	public String getProfessionalLevel() {
		return professionalLevel;
	}
	public void setProfessionalLevel(String professionalLevel) {
		this.professionalLevel = professionalLevel;
	}
	public Integer getGender() {
		return gender;
	}
	public void setGender(Integer gender) {
		this.gender = gender;
	}
	public Integer getUserNum() {
		return userNum;
	}
	public void setUserNum(Integer userNum) {
		this.userNum = userNum;
	}
	public String getTotalTime() {
		return totalTime;
	}
	public void setTotalTime(String totalTime) {
		this.totalTime = totalTime;
	}
	public String getAverageTime() {
		return averageTime;
	}
	public void setAverageTime(String averageTime) {
		this.averageTime = averageTime;
	}
	public Integer getPartyMember() {
//		if (PropertyUtil.objectNotEmpty(this.headCount) 
//				&& PropertyUtil.objectNotEmpty(this.flowMember)) {
//			partyMember = this.headCount - this.flowMember;
//		}else if(PropertyUtil.objectNotEmpty(this.headCount) 
//				&& !PropertyUtil.objectNotEmpty(this.flowMember)) {
//			partyMember = this.headCount;
//		}else {
//			partyMember = 0;
//		}
		return partyMember;
	}
	public void setPartyMember(Integer partyMember) {
		this.partyMember = partyMember;
	}
	public Integer getFlowMember() {
		return flowMember;
	}
	public void setFlowMember(Integer flowMember) {
		this.flowMember = flowMember;
	}
	public String getTreePath() {
		return treePath;
	}
	public void setTreePath(String treePath) {
		this.treePath = treePath;
	}
	public Integer getHeadCount() {
		return headCount;
	}
	public void setHeadCount(Integer headCount) {
		this.headCount = headCount;
	}
	public User getDyNum() {
		return dyNum;
	}
	public void setDyNum(User dyNum) {
		this.dyNum = dyNum;
	}
	
	
}
